package com.psbc.decorator;

/**
 * @author:y022 01/09/2022 22:29
 * @description:
 */
public class DefaultDecoratorAction implements UserAction {
    private UserAction userAction;

    @Override
    public void query() {
        userAction.query();
    }

    @Override
    public String queryName() {
        return userAction.queryName();
    }

    @Override
    public String UpdateName(String name) {
        return userAction.UpdateName(name) + "经过了装饰器增强后方法";
    }

    public DefaultDecoratorAction(UserAction userAction) {
        this.userAction = userAction;
    }
}
